package hjt.com.module_test.fragment;


import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.tencent.mmkv.MMKV;
import com.tong.lib.adapter.recyclerview.MultiItemTypeAdapter;
import com.tong.lib.base.LazyFragment;

import java.util.ArrayList;
import java.util.List;

import androidx.databinding.DataBindingUtil;
import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import hjt.com.componentbase.constant.ARouterConstants;
import hjt.com.module_test.R;
import hjt.com.module_test.adpter.TestAdpter;
import hjt.com.module_test.bean.MyListBean;
import hjt.com.module_test.databinding.FragmentTestBinding;
import hjt.com.module_test.model.TestModel;

/**
 * A simple {@link Fragment} subclass.
 */

@Route(path = ARouterConstants.FRAGMENT_TEST_TEST)
public class TestFragment extends LazyFragment {

    private List<String> dataList = new ArrayList<>();
    private TestAdpter testAdpter;
    private FragmentTestBinding mBinding;
    private TestModel testModel;

    public TestFragment() {
        // Required empty public constructor
    }

    @Override
    protected int getLayoutResID() {
        return R.layout.fragment_test;
    }

    @Override
    protected void initDataBinding(LayoutInflater inflater, int layoutRes, ViewGroup container, Bundle savedInstanceState) {
        mBinding = DataBindingUtil.inflate(inflater, layoutRes, container, false);
        mView = mBinding.getRoot();
    }

    @Override
    protected void init(Bundle savedInstanceState) {

    }

    @Override
    protected void initEvent() {

    }

    @Override
    protected void lazyLoad() {
    }

    private void change1(String name){
        name = "aa";
    }

    @Override
    protected boolean isDataBinding() {
        return true;
    }

}
